package cn.wolfcode.trip.app.controller;

import cn.wolfcode.trip.base.domain.AuthorTravelUser;
import cn.wolfcode.trip.base.query.CollectQueryObject;
import cn.wolfcode.trip.base.service.IMyCollectService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
* 我的收藏接口
*
* */
@RestController
@RequestMapping("/collects")
public class MyCollectController {
    //根据类型不同决定查询游记收藏还是日报收藏 ,type=1,游记收藏,type=2,日报收藏
    @Autowired
    private IMyCollectService collectService;


    //获取指定用户的收藏信息
    @GetMapping
    public PageInfo list(CollectQueryObject qo){
        PageInfo info = collectService.query(qo);
        return info;
    }


}
